import pandas as pd
import plotly.express as px
df = pd.DataFrame(
{"x" :[i for i in range(1,50)],
 "y": [2*i for i in range(1,50)],
 "z" :[3*i for i in range(1,50)],}
)
fig = px.scatter_3d(df,
                    x="x",
                    y="y",
                    z="z",
                    size="z",color='z'
                    )
fig.show()